import { createRouter, createWebHistory } from 'vue-router'


import Layout from '../views/Layout/index.vue'
import cartoon from '../views/Channel/cartoon.vue'
import child from '../views/Channel/child.vue'
import doco from '../views/Channel/doco.vue'
import video from '../views/Channel/mid_video.vue'
import movie from '../views/Channel/movie.vue'
import sports from '../views/Channel/sports_new.vue'
import tv from '../views/Channel/tv.vue'
import variety from '../views/Channel/variety.vue'
import home from '../views/Layout/components/contain-main.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: Layout,
      children:[
        { path: '',
          component: home,
          meta:{
            keepAlive:false
          }
        },
        {
          path: 'cartoon',
          component: cartoon,
          meta:{
            keepAlive:false
          }
        },
        {
          path: 'child',
          component: child,
          meta:{
            keepAlive:false
          }
        },
        {
          path: 'doco',
          component: doco,
          meta:{
            keepAlive:false
          }
        },
        {
          path: 'video',
          component: video,
          meta:{
            keepAlive:false
          }
        },
        {
          path: 'movie',
          component: movie,
          meta:{
            keepAlive:false
          }
        },
        {
          path: 'sport',
          component: sports,
          meta:{
            keepAlive:false
          }
        },
        {
          path: 'tv',
          component: tv,
          meta:{
            keepAlive:false
          }
        },
        {
          path: 'variety',
          component: variety,
          meta:{
            keepAlive:false
          }
        },
      ],
    },
    
  ]
})

  

export default router
